<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <link rel="shortcut icon" href="/static/img/favicon.ico">

    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>[|.siteName|] 登录</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css?t=1504439386550" media="all">
    <link rel="stylesheet" href="/static/css/login.css?t=1504439386550" media="all">
</head>

<body>
    <div class="layui-carousel video_mask bg-img" id="login_carousel">

        <div class="login layui-anim layui-anim-up">
            <h1>[|.siteName|]</h1>
            </p>
            <form class="layui-form" action="" method="post">
                <div class="layui-form-item">
                    <input type="text" name="username" lay-verify="required" placeholder="请输入账号" autocomplete="off" value="admin" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <input type="password" name="password" lay-verify="required" placeholder="请输入密码" autocomplete="off" value="123456" class="layui-input">
                </div>

                <div class="layui-input-inline;" style="height:50px">

                    <label style="color:rgb(255, 255, 255)">验证码</label>
                    <input style="height:22px" type="text" id="captcha" name="captcha" size="6">
                    <div class="layui-input-inline" style="width:100px;height:30px; background-color: rgb(238,243,250);">
                        <a href="javascript:;" title="看不清楚？点击更换。"><img id="Captchaimage" name="Captchaimage" src="/captcha/[|.CaptchaId|].png" onclick="CaptchaReload()" alt="看不清楚？点击更换。"></a>
                    </div>
                </div>



                <input type=hidden name=captchaId value="[|.CaptchaId|]">
                <div class="ui error message" id="err">
                    <div class="header"></div>
                </div>

                <button class="layui-btn login_btn" lay-submit="" lay-filter="login">登陆系统</button>
            </form>
        </div>
    </div>
    <script src="/static/layui/layui.js?t=1504439386550" charset="utf-8"></script>
    <!-- <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.js"></script>-->
    <script type="text/javascript">
        layui.use(['layer', 'form'], function() {
            var layer = layui.layer; //弹层
            var form = layui.form;
            var error_info = "[|.flash.error|]";
            if (error_info) {
                layer.msg(error_info, {
                    time: 2000,
                    offset: '100px'
                });
            }


        })

        function setSrcQuery(e, q) {
            var src = e.src;
            var p = src.indexOf('?');
            if (p >= 0) {
                src = src.substr(0, p);
            }
            e.src = src + "?" + q
        }

        function CaptchaReload() {
            setSrcQuery(document.getElementById('Captchaimage'), "reload=" + (new Date()).getTime());
            return false;
        }
    </script>
</body>

</html>